/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.stream.IntStream;

/**
 * <p>Project: jse2204 - Stream6
 * <p>Powered by webrx On 2022-09-28 17:48:58
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Stream6 {
    public static void main(String[] args) {
        IntStream is = IntStream.generate(User::rand).limit(10);
        //is.forEach(User::out);

        is.forEach(e->System.out.printf("ok:%d ",e));

    }
}
